/***********************************************************
 *  File_Name  : XJEnv.h
 *  File_Path   :
 *  File_Encode : UTF8
 *  Description : 环境设置
 *
 *  OS : Linux, UNIX, Windows
 *  LastVersion  : 20150918
 *
 *  Author      : LiXiujie(李秀杰)
 *  Date        : 2015-9-18
 *  Version     : 20150918
 *  Description :
 *
 *  Edit Author :
 *  Edit Date   :
 *  Version     :
 *  Description :
 *
 ***********************************************************/

#ifndef SRC_XJENV_H_
#define SRC_XJENV_H_

/* 屏蔽WINDOWS环境 */
#ifdef _WIN32
#undef _WIN32
#endif

//#define XJF_JSON   1
//#define XJF_TUXEDO 1

// #ifndef __linux__
// #define __linux__
// #endif

typedef	char                        XJ_INT8_T;
typedef	short int                   XJ_INT16_T;
typedef	int                         XJ_INT32_T;
typedef	unsigned char               XJ_UINT8_T;
typedef	unsigned short int          XJ_UINT16_T;
typedef	unsigned int                XJ_UINT32_T;

#ifndef _WIN32
typedef unsigned char               XJ_BYTE_T;
typedef char                        XJ_TCHAR_T;
#  if __WORDSIZE == 64
typedef long int                    XJ_INT64_T;
typedef unsigned long int           XJ_UINT64_T;
#  elif __GLIBC_HAVE_LONG_LONG
__extension__ typedef long long int XJ_INT64_T;
__extension__ typedef unsigned long long int XJ_UINT64_T;
#else
typedef long long int               XJ_INT64_T;
typedef unsigned long long int      XJ_UINT64_T;
#  endif

#else
typedef BYTE                        XJ_BYTE_T;
typedef TCHAR                       XJ_TCHAR_T;
typedef __int64                     XJ_INT64_T;
#endif

#endif /* SRC_XJENV_H_ */
